package com.example.oasystem.dao.type;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.oasystem.entity.type.AoaTypeList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AoaTypeListDao extends BaseMapper<AoaTypeList> {

    @Select("select *from aoa_type_list ")
    List<AoaTypeList> selectAll();
    @Select("select type_name from aoa_type_list where type_id=#{typeId}")
    String typeName(Long typeId);

    @Select("select * from aoa_type_list")
    List<AoaTypeList> aoaTypeLists();

    List<AoaTypeList> selectTypeListByModel();
    List<AoaTypeList> selectTypeListByRealModel(String typeModel);
}